<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
    <style>
    	#tbl{
            background: pink;
        }
        body{
            background-image:url(/images/timg.jpg)
        }
        h1{
            color:white;
            font-size: 30px;
        }
        p{
            color:white;
            font-size: 20px;
        }
        #btn{
            margin:10px;
            height:30px;
            width:50px;
        }
    </style>
  </head>
  <body>
    <h1><%= title %></h1>
    <p>欢迎来到<%= title %></p>



    <table id='tbl'>
    <tr>
    	<td>书名</td>
    	<td>作者</td>
    	<td>价格</td>
    </tr>

    <%books.forEach(function(item,index,arr){ %>

            <tr>
		<td><%=item.name%></td>
		<td><%=item.author%></td>
		<td><%=item.price%></td>
			</tr>
		<%});%>

    </table>
    <input type="button" id='btn' value="添加" onclick="location.href='http://localhost:8888/editbookView'">
  
   
    

    
  </body>
</html>
